submitForm() {
    this.$refs["form"].validate(valid => {
        if (valid) {
            // 确保ID为整数类型
            if (this.form.id) {
                this.form.id = parseInt(this.form.id);
            }
            
            if (this.form.id != null) {
                updateProductOrder(this.form).then(response => {
                    this.$modal.msgSuccess("修改成功");
                    this.open = false;
                    this.getList();
                });
            } else {
                addProductOrder(this.form).then(response => {
                    this.$modal.msgSuccess("新增成功");
                    this.open = false;
                    this.getList();
                });
            }
        }
    });
}

getList() {
    this.loading = true;
    this.queryParams.params = {};
    if (null != this.daterangeOrderTime && '' != this.daterangeOrderTime) {
        this.queryParams.params["beginOrderTime"] = this.daterangeOrderTime[0];
        this.queryParams.params["endOrderTime"] = this.daterangeOrderTime[1];
    }
    listProductOrder(this.queryParams).then(response => {
        // 确保ID为整数类型
        this.productOrderList = response.rows.map(item => ({
            ...item,
            id: parseInt(item.id)
        }));
        this.total = response.total;
        this.loading = false;
    });
} 